ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../build/
ASSEMBLY_NAME=Galaxium.Protocol
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN =

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-pkg:mono-addins \
	-pkg:mono-addins-setup \
	-r:../../build/Galaxium.Core.dll \
	-r:Mono.Data.Sqlite \
	-r:System \
	-r:System.Data \
	-r:System.Drawing \
	-r:System.Web \
	-r:System.Xml

RESOURCES = Galaxium.Protocol.addin 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Abstract/AbstractAccount.cs \
	Abstract/AbstractAccountCache.cs \
	Abstract/AbstractConnection.cs \
	Abstract/AbstractConnectionInfo.cs \
	Abstract/AbstractContact.cs \
	Abstract/AbstractConversation.cs \
	Abstract/AbstractConversationManager.cs \
	Abstract/AbstractEntity.cs \
	Abstract/AbstractFileTransfer.cs \
	Abstract/AbstractGroup.cs \
	Abstract/AbstractGroupManager.cs \
	Abstract/AbstractPresence.cs \
	Abstract/AbstractProtocol.cs \
	Abstract/AbstractProtocolFactory.cs \
	Abstract/AbstractSession.cs \
	Activities/AbstractActivity.cs \
	Activities/EntityActivity.cs \
	Activities/EntityImageChangeActivity.cs \
	Activities/EntityMessageChangeActivity.cs \
	Activities/EntityNameChangeActivity.cs \
	Activities/EntityPresenceChangeActivity.cs \
	Activities/NewContactActivity.cs \
	Activities/ReceivedFileActivity.cs \
	Activities/ReceivedMessageActivity.cs \
	Activities/ReceivedOtherActivity.cs \
	Collections/ContactCollection.cs \
	Collections/GroupCollection.cs \
	Conditions/ActiveSessionCondition.cs \
	Enums/ProxyType.cs \
	Enums/TextChunkType.cs \
	EventArgs/AccountEventArgs.cs \
	EventArgs/ChatEventArgs.cs \
	EventArgs/ConnectionDataEventArgs.cs \
	EventArgs/ConnectionErrorEventArgs.cs \
	EventArgs/ConnectionEventArgs.cs \
	EventArgs/ContactActionEventArgs.cs \
	EventArgs/ContactEventArgs.cs \
	EventArgs/ContactListEventArgs.cs \
	EventArgs/ConversationEventArgs.cs \
	EventArgs/EmoticonEventArgs.cs \
	EventArgs/EntityChangeEventArgs.cs \
	EventArgs/ErrorEventArgs.cs \
	EventArgs/FileTransferErrorEventArgs.cs \
	EventArgs/FileTransferEventArgs.cs \
	EventArgs/GroupEventArgs.cs \
	EventArgs/NameChangeEventArgs.cs \
	EventArgs/PropertyEventArgs.cs \
	EventArgs/SessionErrorEventArgs.cs \
	EventArgs/SessionEventArgs.cs \
	EventArgs/SessionProgressEventArgs.cs \
	EventArgs/TextMessageEventArgs.cs \
	Exceptions/ProtocolException.cs \
	Exceptions/ProxyConnectionException.cs \
	Implementations/BufferManager.cs \
	Implementations/BufferSize.cs \
	Implementations/ConversationLogEntry.cs \
	Implementations/EmoticonTextChunk.cs \
	Implementations/IndexedConversationLog.cs \
	Implementations/IndexedConversationLogArchive.cs \
	Implementations/IndexedConversationLogMetaData.cs \
	Implementations/MessageBuilder.cs \
	Implementations/SocksSocket.cs \
	Implementations/SQLiteConversationLog.cs \
	Implementations/TCPConnection.cs \
	Implementations/TextChunk.cs \
	Implementations/TextMessage.cs \
	Implementations/TextStyle.cs \
	Implementations/TunnelSocket.cs \
	Implementations/UnknownPresence.cs \
	Interfaces/IAccount.cs \
	Interfaces/IAccountCache.cs \
	Interfaces/IActivity.cs \
	Interfaces/IConnection.cs \
	Interfaces/IConnectionInfo.cs \
	Interfaces/IContact.cs \
	Interfaces/IConversation.cs \
	Interfaces/IConversationLog.cs \
	Interfaces/IConversationManager.cs \
	Interfaces/IDisplayImage.cs \
	Interfaces/IEmoticon.cs \
	Interfaces/IEntity.cs \
	Interfaces/IFileTransfer.cs \
	Interfaces/IGroup.cs \
	Interfaces/IGroupManager.cs \
	Interfaces/IMessageSplitter.cs \
	Interfaces/IPresence.cs \
	Interfaces/IProtocol.cs \
	Interfaces/IProtocolFactory.cs \
	Interfaces/ISecureConnection.cs \
	Interfaces/ISession.cs \
	Interfaces/ITextChunk.cs \
	Interfaces/ITextMessage.cs \
	Interfaces/ITextStyle.cs \
	Utilities/AccountUtility.cs \
	Utilities/ActivityUtility.cs \
	Utilities/BufferUtility.cs \
	Utilities/CacheUtility.cs \
	Utilities/ConversationLogUtility.cs \
	Utilities/EncodingUtility.cs \
	Utilities/ProtocolUtility.cs \
	Utilities/SessionUtility.cs \
	Utilities/TextUtility.cs \
	Utilities/XmlUtility.cs

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include
